/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XPF
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PhysicalSkillsScoreGrade extends BasicModel<PhysicalSkillsScoreGrade> {
  scoreGradeId?: string; // 分值等级主键
  termId?: string; // 关联单项指标
  singleScore?: string; // 单项指标得分
  scoreGrade?: string; // 得分对应等级
  isDelete?: string; // 删除标记
}

export const physicalSkillsScoreGradeList = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.get<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/list', params });

export const physicalSkillsScoreGradeListData = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.post<Page<PhysicalSkillsScoreGrade>>({ url: adminPath + '/physical/physicalSkillsScoreGrade/listData', params });

export const physicalSkillsScoreGradeForm = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.get<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/form', params });

export const physicalSkillsScoreGradeSelectData = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.get<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/sportsPhysicalSkills/selectData', params });

export const physicalSkillsScoreGradeSave = (params?: any, data?: PhysicalSkillsScoreGrade | any) =>
  defHttp.postJson<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/save', params, data });

export const physicalSkillsScoreGradeDelete = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.get<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/delete', params });

export const physicalSkillsScoreGradeCancelSingleIndex = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.post<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/cancelSingleIndex', params });

export const physicalSkillsScoreGradeSelectSingleIndex = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.post<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScore/selectSingleIndex', params });

export const physicalSkillsScoreGradeSaveSingleIndex = (params?: PhysicalSkillsScoreGrade | any) =>
  defHttp.post<PhysicalSkillsScoreGrade>({ url: adminPath + '/physical/physicalSkillsScoreGrade/saveSingleIndex', params });
